<?php
class classWindow{
	public function ShowAJAX($sSRCElementID, $Content, $IsChild=false){
		$_Skin = new classTemplate();
		if(!$IsChild)
			$setInvisibleShadow = 'document.getElementById(\'shadow_container\').style.visibility=\'hidden\';';
		else
			$setInvisibleShadow='';
			
		return '
			<div id="css_float_window_DST"
				onmouseout="
					document.getElementById(\'float_window_close_image\').style.visibility=\'hidden\';
					document.getElementById(\'float_window_close_text\').style.visibility=\'hidden\';					
				"
				onmouseover="
					document.getElementById(\'float_window_close_image\').style.visibility=\'visible\';
					document.getElementById(\'float_window_close_text\').style.visibility=\'visible\';					
				"
			>				
				<img 
					id="float_window_close_image"
					src="'.$_Skin->getActual().'/images/close.png"
					alt=""
					onclick="
						'.$setInvisibleShadow.'
						document.getElementById(\''.$sSRCElementID.'\').innerHTML=\'\';						
					"
					onload="
						document.getElementById(\'shadow_container\').style.visibility=\'visible\';
					"
				>
				<font 
					id="float_window_close_text"
					onclick="
						'.$setInvisibleShadow.'
						document.getElementById(\''.$sSRCElementID.'\').innerHTML=\'\';						
					"
				>
					'._i18n_system_CLOSE_.'
				</font>
				'.$Content.'
			</div>
		';
		
	}
	
	public function ShowURL($Content,$CloseURL){
		$_Skin = new classTemplate();
		return '
			<div id="css_NOAJAX_flow_container"
				onmouseout="
					document.getElementById(\'float_noajax_window_close_image\').style.visibility=\'hidden\';
					document.getElementById(\'float_noajax_window_close_text\').style.visibility=\'hidden\';
				"
				onmouseover="
					document.getElementById(\'float_noajax_window_close_image\').style.visibility=\'visible\';
					document.getElementById(\'float_noajax_window_close_text\').style.visibility=\'visible\';
				"
			>
				<a
					href="'.$CloseURL.'" 
					id="float_noajax_window_close_image"
				>
					<img 
						src="'.$_Skin->getActual().'/images/close.png"
						border="0"
						alt="image"
						onload="document.getElementById(\'shadow_container\').style.visibility=\'visible\';"
					>
				</a>
				<a
					href="'.$CloseURL.'"
					id="float_noajax_window_close_text"
				>
					'._i18n_system_CLOSE_.'
				</a>
				'.$Content.'
			</div>
		';
	}
}
?>